﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter09.ViewModel
{
    using System.Windows.Input;

    public static class DataCommands
    {
        private static RoutedUICommand undo;

        public static RoutedUICommand Undo
        {
            get { return DataCommands.undo; }
            set { DataCommands.undo = value; }
        }

        static DataCommands()
        {
            var inputs = new InputGestureCollection();
            inputs.Add(new KeyGesture(Key.R, ModifierKeys.Control, "Ctrol+R"));
            undo = new RoutedUICommand("数据撤销", "Requery", typeof(DataCommands), inputs);
        }
    }
}
